import type { AppRouteModule } from '@/router/types';
import { RoleEnum } from '@/enums/roleEnum';
import { LAYOUT } from '@/router/constant';
import { t } from '@/hooks/web/useI18n';

const video: AppRouteModule = {
  path: '/video',
  name: 'Video',
  component: LAYOUT,
  redirect: '/video/index',
  meta: {
    orderNo: 4000,
    icon: 'ion:grid-outline',
    title: '视频信息管理',
    roles: ['supper' as RoleEnum], // 添加 roles 属性
  },
  children: [
    {
      path: 'index',
      name: 'Video',
      component: () => import('@/views/demo/video/index.vue'),
      meta: {
        title: '视频信息管理',
        icon: 'ion:grid-outline',
        hideMenu: true,
        roles: ['supper' as RoleEnum], // 添加 roles 属性
      },
    },
  ],
};

export default video;